home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / ARexxTools / fpl70.lha / src / Makefile.SVR4 < prev    next >
Encoding:
Makefile  |  1994-03-15  |  3.2 KB  |  78 lines

  1. # $VER: fpllib.so makefile v1.0 94-03-14
  2.  
  3. ########################################################################
  4. #                                                                      #
  5. # fpl.library - A shared library interpreting script langauge.         #
  6. # Copyright (C) 1992-1994 FrexxWare                                    #
  7. # Author: Daniel Stenberg                                              #
  8. #                                                                      #
  9. # This program is free software; you may redistribute for non          #
  10. # commercial purposes only. Commercial programs must have a written    #
  11. # permission from the author to use FPL. FPL is *NOT* public domain!   #
  12. # Any provided source code is only for reference and for assurance     #
  13. # that users should be able to compile FPL on any operating system     #
  14. # he/she wants to use it in!                                           #
  15. #                                                                      #
  16. # You may not change, resource, patch files or in any way reverse      #
  17. # engineer anything in the FPL package.                                #
  18. #                                                                      #
  19. # This program is distributed in the hope that it will be useful,      #
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of       #
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                 #
  22. #                                                                      #
  23. # Daniel Stenberg                                                      #
  24. # Ankdammsgatan 36, 4tr                                                #
  25. # S-171 43 Solna                                                       #
  26. # Sweden                                                               #
  27. #                                                                      #
  28. # FidoNet 2:201/328    email:dast@sth.frontec.se                       #
  29. #                                                                      #
  30. ########################################################################
  31.  
  32. .SUFFIXES: .o .c .c~ .h .h~ .a .i
  33.  
  34. ################################################
  35. # Below follows all UNIX macros/actions/lines: #
  36. ################################################
  37. LIB     = libfpl.a
  38. TARGET  = FPL
  39. EXPORT  = fpl.exp
  40. OBJS    = script.o numexpr.o caller.o hash.o statement.o memory.o frontend.o
  41. LIBOBJS = script.o numexpr.o hash.o statement.o memory.o frontend.o
  42. LIBDEP  = $(LIBOBJS) $(EXPORT)
  43. TEMP    = templib.o
  44.  
  45. # if using the `gcc' compiler:
  46. CFLAGS  = -DUNIX -DSHARED -ansi
  47. CC      = gcc
  48. #CC     = cc
  49. LD      = ld
  50. LDFLAGS = -G # -G makes the destination to become a sharable object!
  51.  
  52. all:    $(LIB) SFPL
  53.  
  54. $(LIB) : $(LIBDEP)
  55.     $(CC) $(LDFLAGS) $(LIBOBJS) -o $(LIB) -lc
  56.     cp -p FPL.h ../include/libraries
  57.  
  58. $(TARGET) : $(OBJS)
  59.     $(CC) $(OBJS) -o $(TARGET)
  60.  
  61. .c.o:
  62.     $(CC) $(CFLAGS) -c $<
  63.  
  64. # This compiling is using -DSFPL to make the MALLOC() macro not to use the
  65. # global `mem' variable!
  66. SFPL: caller.c FPL.h script.h Makefile
  67.     $(CC) $(CFLAGS) -DSFPL -o SFPL caller.c -L. -lfpl
  68.  
  69. $(OBJS): script.h FPL.h Makefile
  70.  
  71. script.o:script.c
  72. numexpr.o:numexpr.c
  73. caller.o:caller.c
  74. statement.o:statement.c
  75. hash.o:hash.c
  76. memory.o:memory.c memory.h
  77. frontend.o:frontend.c
  78.